<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>${title!}如梦技术管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="alternate icon" type="image/png" href="${ctxPath}/favicon.ico">
    <link rel="stylesheet" href="${ctxPath}/static/amazeui/assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="${ctxPath}/static/amazeui/assets/css/admin.css">
    <% for(x in cssExt!) { %>
    <link rel="stylesheet" href="${ctxPath}${x}">
    <% } %>
</head>

<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
    以获得更好的体验！</p>
<![endif]-->
<header class="am-topbar admin-header">
    <div class="am-topbar-brand">
        <strong>如梦技术</strong>
        <small>管理平台</small>
    </div>
    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}">
        <span class="am-sr-only">导航切换</span>
        <span class="am-icon-bars"></span>
    </button>

    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
            <li class="am-dropdown" data-am-dropdown>
                <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
                    <span class="am-icon-users">
                        </span> 管理员 <span class="am-icon-caret-down">
                    </span>
                </a>
                <ul class="am-dropdown-content">
                    <li><a href="${ctxPath}/ucenter/information"><span class="am-icon-user"></span> 资料</a></li>
                    <li><a href="javascript:logout();"><span class="am-icon-power-off"></span> 退出</a></li>
                </ul>
            </li>
            <li class="am-hide-sm-only">
                <a href="javascript:;" id="admin-fullscreen">
                    <span class="am-icon-arrows-alt"></span>
                    <span class="admin-fullText">开启全屏</span>
                </a>
            </li>
        </ul>
    </div>
</header>
<%
// 用于打开某个菜单
var blogOpen   = isEmpty(blogOpen)   ? '' : 'am-in';
var systemOpen = isEmpty(systemOpen) ? '' : 'am-in';
%>
<div class="am-cf admin-main">
    <!-- sidebar start -->
    <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
        <div class="am-offcanvas-bar admin-offcanvas-bar">
            <ul class="am-list admin-sidebar-list">
                <li>
                    <a href="${ctxPath}/admin"><span class="am-icon-home"></span> 首页</a>
                </li>
                <li class="admin-parent">
                    <a class="am-cf" data-am-collapse="{target: '#collapse-blog'}">
                        <span class="am-icon-file"></span> 博客
                        <span class="am-icon-angle-right am-fr am-margin-right"></span>
                    </a>
                    <ul class="am-list am-collapse admin-sidebar-sub ${blogOpen!}" id="collapse-blog">
                        <li>
                            <a href="${ctxPath}/admin/blogs" class="am-cf">
                                <span class="am-icon-newspaper-o"></span> 文章管理
                            </a>
                            <a href="${ctxPath}/admin/data_tables" class="am-cf">
                                <span class="am-icon-newspaper-o"></span> datatables演示
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="admin-parent">
                    <a class="am-cf" data-am-collapse="{target: '#collapse-system'}">
                        <span class="am-icon-gears"></span> 系统配置
                        <span class="am-icon-angle-right am-fr am-margin-right"></span>
                    </a>
                    <ul class="am-list am-collapse admin-sidebar-sub ${systemOpen!}" id="collapse-system">
                        <li>
                            <a href="${ctxPath}/admin/system/basic_setting">
                                <span class="am-icon-wrench"></span> 基本配置
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>

            <div class="am-panel am-panel-default admin-sidebar-panel">
                <div class="am-panel-bd">
                    <p><span class="am-icon-bookmark"></span> 通知</p>                                                                       
                    <p>欢迎来到 “如梦技术”！</p>
                </div>
            </div>
        </div>
    </div>
    <!-- sidebar end -->

    <!-- content start -->
    ${layoutContent}
    <!-- content end -->

</div>

<a class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>

<footer>
    <hr>
    <p class="am-text-center">如梦技术 （<a href="http://www.dreamlu.net">www.dreamlu.net</a>） 版权所有</p>
</footer>

<script type="text/javascript">
function getCtxPath() {
    return "${ctxPath}";
}
</script>
<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="${ctxPath}/static/amazeui/assets/js/polyfill/rem.min.js"></script>
<script src="${ctxPath}/static/amazeui/assets/js/polyfill/respond.min.js"></script>
<script src="${ctxPath}/static/amazeui/assets/js/amazeui.legacy.js"></script>
<![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="${ctxPath}/static/amazeui/assets/js/jquery.min.js"></script>
<script src="${ctxPath}/static/amazeui/assets/js/amazeui.min.js"></script>
<!--<![endif]-->
<script src="${ctxPath}/static/amazeui/assets/js/app.js"></script>
<!-- layer -->
<script src="${ctxPath}/static/layer/layer.js"></script>
<script src="${ctxPath}/static/admin/admin.js"></script>
<% for(x in jsExt!) { %>
<script src="${ctxPath}${x}"></script>
<% } %>
</body>
</html>